!include "MUI2.nsh"
!include "LogicLib.nsh"
!insertmacro MUI_LANGUAGE "SimpChinese"


# define the name of the installer
Outfile "..\out\Installer.exe"

# define the directory to install to, the desktop in this case as specified
# by the predefined $DESKTOP variable
InstallDir $DESKTOP\simple

# default section
Section

# define the output path for this file
SetOutPath $INSTDIR

Debug::Watcher

# define what to install and place it in the output path
File 4.simple-installer.txt
File 4.simple-installer.md

# define uninstaller name
WriteUninstaller $INSTDIR\uninstaller.exe

SectionEnd

# create a section to define what the uninstaller does.
# the section will always be named "Uninstall"
Section "Uninstall"

SetOutPath $INSTDIR

# Delete installed file
Delete 4.simple-installer.txt
Delete 4.simple-installer.md

# Delete the uninstaller
Delete uninstaller.exe

# Delete the directory
RMDir $INSTDIR

SectionEnd
